import request from '@/utils/request'
//新增居民表
export function addResident(data) {
    return request({
        url: '/family_doctor_visit/forms/add/resident/records',
        method: 'post',
        data,
    })
}
//身份证号查询
export function getByCard(data) {
    return request({
        url: '/family_doctor_visit/forms/get/resident/records/by/card',
        method: 'post',
        data,
    })
}


//图片上传
export const addFileUrl = '/family_doctor_user/user/upload/images'
    //******************居民表数据 ****************//
    //性别
export const sex = [{
            id: '1',
            name: "男"
        },
        {
            id: '0',
            name: "女"
        },
        {
            id: '2',
            name: "未说明的性别"
        },
        {
            id: '3',
            name: "未知的性别"
        },
    ]
    //户籍
export const residentType = [{
            id: '1',
            name: "户籍"
        },
        {
            id: '2',
            name: "非户籍"
        },
    ]
    //血型
export const bloodType = [{
            id: '1',
            name: "A型"
        },
        {
            id: '2',
            name: "B型"
        },
        {
            id: '3',
            name: "C型"
        },
        {
            id: '4',
            name: "D型"
        },
    ]
    //血型RH
export const bloodTypeRH = [{
            id: '0',
            name: "是"
        },
        {
            id: '1',
            name: "否"
        },
        {
            id: '2',
            name: "不详"
        },
    ]
    //学历
export const educationDegree = [{
            id: '1',
            name: "研究生"
        },
        {
            id: '2',
            name: "大学本科"
        },
        {
            id: '3',
            name: "大学专科和专科学校"
        },
        {
            id: '4',
            name: "中等专业学校"
        },
        {
            id: '5',
            name: "技工学校"
        },
        {
            id: '6',
            name: "高中"
        },
        {
            id: '7',
            name: "初中"
        },
        {
            id: '8',
            name: "小学"
        },
        {
            id: '9',
            name: "文盲或半文盲"
        },
    ]
    //职业
export const occupation = [{
            id: '1',
            name: "国家机关、党群组织、企业、事业单位负责人"
        },
        {
            id: '2',
            name: "专业技术人员"
        },
        {
            id: '3',
            name: "办事人员和有关人员"
        },
        {
            id: '4',
            name: "商业、服务业人员"
        },
        {
            id: '5',
            name: "农、林、牧、渔、水利业生产人员"
        },
        {
            id: '6',
            name: "生产、运输设备操作人员及有关人员"
        },
        {
            id: '7',
            name: "军人"
        },
        {
            id: '8',
            name: "不便分类的其他从业人员"
        },
        {
            id: '9',
            name: "无职业"
        },
    ]
    //婚姻
export const maritalStatus = [{
            id: '1',
            name: "未婚"
        },
        {
            id: '2',
            name: "已婚"
        },
        {
            id: '3',
            name: "丧偶"
        },
        {
            id: '4',
            name: "离婚"
        },
        {
            id: '5',
            name: "未说明婚姻状况"
        },
    ]
    //支付方式
export const payType = [{
            id: '1',
            name: "城镇或省职工基本医疗保险"
        },
        {
            id: '2',
            name: "居民基本医疗保险"
        },
        {
            id: '3',
            name: "贫困救助"
        },
        {
            id: '4',
            name: "商业医疗保险"
        },
        {
            id: '5',
            name: "全公费"
        },
        {
            id: '6',
            name: "全自费"
        },
        {
            id: '7',
            name: "其他"
        },
    ]
    //药物过敏
export const drugAllergy = [{
            id: '1',
            name: "无",
            isDisabled: false
        },
        {
            id: '2',
            name: "青霉素",
            isDisabled: false
        },
        {
            id: '3',
            name: "磺胺",
            isDisabled: false
        },
        {
            id: '4',
            name: "链霉素",
            isDisabled: false
        },
        {
            id: '5',
            name: "其他",
            isDisabled: false
        },
    ]
    //暴露史
export const exposure = [{
            id: '1',
            name: "无",
            isDisabled: false
        },
        {
            id: '2',
            name: "化学品",
            isDisabled: false
        },
        {
            id: '3',
            name: "磺胺",
            isDisabled: false
        },
        {
            id: '4',
            name: "毒物",
            isDisabled: false
        },
    ]
    //父亲
export const fatherPrevalence = [{
            id: '1',
            name: "无",
            isDisabled: false
        },
        {
            id: '2',
            name: "高血压",
            isDisabled: false
        },
        {
            id: '3',
            name: "磺糖尿病胺",
            isDisabled: false
        },
        {
            id: '4',
            name: "冠心病",
            isDisabled: false
        },
        {
            id: '5',
            name: "慢性阻塞性肺疾病",
            isDisabled: false
        },
        {
            id: '6',
            name: "恶性肿瘤",
            isDisabled: false
        },
        {
            id: '7',
            name: "脑卒中",
            isDisabled: false
        },
        {
            id: '8',
            name: "严重精神障碍",
            isDisabled: false
        },
        {
            id: '9',
            name: "结核病",
            isDisabled: false
        },
        {
            id: '10',
            name: "肝炎",
            isDisabled: false
        },
        {
            id: '11',
            name: "先天畸形",
            isDisabled: false
        },
        {
            id: '12',
            name: "其他",
            isDisabled: false
        },
    ]
    //母亲
export const motherPrevalence = [{
            id: '1',
            name: "无",
            isDisabled: false
        },
        {
            id: '2',
            name: "高血压",
            isDisabled: false
        },
        {
            id: '3',
            name: "磺糖尿病胺",
            isDisabled: false
        },
        {
            id: '4',
            name: "冠心病",
            isDisabled: false
        },
        {
            id: '5',
            name: "慢性阻塞性肺疾病",
            isDisabled: false
        },
        {
            id: '6',
            name: "恶性肿瘤",
            isDisabled: false
        },
        {
            id: '7',
            name: "脑卒中",
            isDisabled: false
        },
        {
            id: '8',
            name: "严重精神障碍",
            isDisabled: false
        },
        {
            id: '9',
            name: "结核病",
            isDisabled: false
        },
        {
            id: '10',
            name: "肝炎",
            isDisabled: false
        },
        {
            id: '11',
            name: "先天畸形",
            isDisabled: false
        },
        {
            id: '12',
            name: "其他",
            isDisabled: false
        },
    ]
    //兄弟
export const brotherPrevalence = [{
            id: '1',
            name: "无",
            isDisabled: false
        },
        {
            id: '2',
            name: "高血压",
            isDisabled: false
        },
        {
            id: '3',
            name: "磺糖尿病胺",
            isDisabled: false
        },
        {
            id: '4',
            name: "冠心病",
            isDisabled: false
        },
        {
            id: '5',
            name: "慢性阻塞性肺疾病",
            isDisabled: false
        },
        {
            id: '6',
            name: "恶性肿瘤",
            isDisabled: false
        },
        {
            id: '7',
            name: "脑卒中",
            isDisabled: false
        },
        {
            id: '8',
            name: "严重精神障碍",
            isDisabled: false
        },
        {
            id: '9',
            name: "结核病",
            isDisabled: false
        },
        {
            id: '10',
            name: "肝炎",
            isDisabled: false
        },
        {
            id: '11',
            name: "先天畸形",
            isDisabled: false
        },
        {
            id: '12',
            name: "其他",
            isDisabled: false
        },
    ]
    //子女
export const childrenPrevalence = [{
            id: '1',
            name: "无",
            isDisabled: false
        },
        {
            id: '2',
            name: "高血压",
            isDisabled: false
        },
        {
            id: '3',
            name: "磺糖尿病胺",
            isDisabled: false
        },
        {
            id: '4',
            name: "冠心病",
            isDisabled: false
        },
        {
            id: '5',
            name: "慢性阻塞性肺疾病",
            isDisabled: false
        },
        {
            id: '6',
            name: "恶性肿瘤",
            isDisabled: false
        },
        {
            id: '7',
            name: "脑卒中",
            isDisabled: false
        },
        {
            id: '8',
            name: "严重精神障碍",
            isDisabled: false
        },
        {
            id: '9',
            name: "结核病",
            isDisabled: false
        },
        {
            id: '10',
            name: "肝炎",
            isDisabled: false
        },
        {
            id: '11',
            name: "先天畸形",
            isDisabled: false
        },
        {
            id: '12',
            name: "其他",
            isDisabled: false
        },
    ]
    //遗传病史
export const genetic = [{
            id: '0',
            name: "有"
        },
        {
            id: '1',
            name: "无"
        },
    ]
    //残疾情况
export const disability = [{
            id: '1',
            name: "无残疾"
        },
        {
            id: '2',
            name: "视力残疾"
        },
        {
            id: '3',
            name: "听力残疾"
        },
        {
            id: '4',
            name: "言语残疾"
        },
        {
            id: '5',
            name: "肢体残疾"
        },
        {
            id: '6',
            name: "智力残疾"
        },
        {
            id: '7',
            name: "精神残疾"
        },
        {
            id: '8',
            name: "其他残疾"
        },
    ]
    //居住情况
export const livingConditions = [{
            id: '1',
            name: "与成年子女同住"
        },
        {
            id: '2',
            name: "与子孙三代（四代）同住"
        },
        {
            id: '3',
            name: "夫妻二人同住"
        },
        {
            id: '4',
            name: "独居"
        },
        {
            id: '5',
            name: "计划生育特殊家庭"
        },
    ]
    //厨房排风设施
export const kitchenExhaust = [{
            id: '1',
            name: "无"
        },
        {
            id: '2',
            name: "油烟机"
        },
        {
            id: '3',
            name: "换气扇"
        },
        {
            id: '4',
            name: "烟囱"
        },
    ]
    //燃料类型
export const fuelType = [{
            id: '1',
            name: "液化气"
        },
        {
            id: '2',
            name: "煤"
        },
        {
            id: '3',
            name: "天然气"
        },
        {
            id: '4',
            name: "沼气"
        },
        {
            id: '5',
            name: "柴火"
        },
        {
            id: '6',
            name: "其他"
        },
    ]
    //饮水
export const drinkWater = [{
            id: '1',
            name: "自来水"
        },
        {
            id: '2',
            name: "经过净化的水"
        },
        {
            id: '3',
            name: "井水"
        },
        {
            id: '4',
            name: "河湖水"
        },
        {
            id: '5',
            name: "塘水"
        },
        {
            id: '6',
            name: "其他"
        },
    ]
    //厕所
export const toilet = [{
            id: '1',
            name: "卫生厕所"
        },
        {
            id: '2',
            name: "一格或二格粪池式"
        },
        {
            id: '3',
            name: "马桶"
        },
        {
            id: '4',
            name: "露天粪坑"
        },
        {
            id: '5',
            name: "简易棚厕"
        },
    ]
    //禽畜栏
export const poultryCorral = [{
        id: '1',
        name: "无"
    },
    {
        id: '2',
        name: "单设"
    },
    {
        id: '3',
        name: "室内"
    },
    {
        id: 4,
        name: "室外"
    },
]
